package com.aloda.mapper;

import com.aloda.entity.TimedTeam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
* @author aloda
* @description 针对表【timed_team(限时组队队伍表)】的数据库操作Mapper
* @createDate 2024-11-06 22:47:07
* @Entity generator.domain.TimedTeam
*/
public interface TimedTeamMapper extends BaseMapper<TimedTeam> {

    /**
     * 根据id更改剩余人数
     * @param id
     * @return
     */
    @Update("update timed_team set remaining_slots = remaining_slots - 1 where team_id = #{id}")
    Boolean updateRemainingSlots(Long id);
}




